package cn.xorange.commons.data.core.entity;

import cn.xorange.commons.data.constants.QueryType;
import cn.xorange.commons.data.annotation.MColumn;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * Tree类型实体父类
 * @author yj
 */
public class TreeEntity extends DataEntity {

    @JsonIgnore
    private boolean isTree = true;
    @MColumn(name = "父ID",treePid = true,webShow = false,columnShow = false)
    private Long parentId;
    @MColumn(name = "节点",treeNode = true,queryType = QueryType.RIGHTLIKE,webShow = false,columnShow = false)
    private String treeNode;

    public void setIsTree(boolean isTree){
        this.isTree = isTree;
    }
    public Boolean getIsTree(){
        return this.isTree;
    }
    public Long getParentId() {
        return parentId;
    }
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getTreeNode() {
        return treeNode;
    }
    public void setTreeNode(String node) {
        this.treeNode = node;
    }



}
